<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">  
	<ui:param name="bodyViewBean" value="#{commonContentViewBean}" />
	<h:head>
	<h:outputStylesheet library="css" name="portal.css" />
	<link type="text/css" rel="stylesheet" href="#{request.contextPath}/themes/#{preferencesManager.theme}/skin.css" />
	<script language="javascript" src="#{request.contextPath}/resources/script/bbs.js"></script>
	</h:head>
	<h:form id="#{bodyViewBean.id}_form" style="margin:0">
		<ui:decorate
			template="/layout/iteration/datatable/sino-datatable-single-template.xhtml">
			<ui:param name="compId" value="#{commonContentViewBean.id}" />
			<ui:param name="compViewBean" value="#{commonContentViewBean}" />
			<ui:param name="compOnRowSelectUpdate" value="#{commonContentViewBean.id}_main"/>

			<ui:define name="compButtons">
			    <p:commandButton title="查看回复" image="ui-icon ui-icon-search" value="查看回复"
				type="button" onclick="openTopicRec('#{bodyViewBean.id}');">
				</p:commandButton>
				
				<p:commandButton title="添加主题" image="ui-icon-disk" value="添加主题"
				type="button" onclick="openAddTopic('#{bodyViewBean.id}');" >
				</p:commandButton>

				<p:commandButton title="编辑主题" image="ui-icon-disk" value="编辑主题"
				type="button" onclick="openEditTopic('#{bodyViewBean.id}');">
				</p:commandButton>

				<p:commandButton value="删除主题" image="ui-icon-trash"
                    update="#{bodyViewBean.id}_form"  title="删除主题"
                    actionListener="#{topicAction.delete}">
                    <h:inputHidden value="#{bodyViewBean.id}"/>                  
            </p:commandButton> 
			</ui:define>
		</ui:decorate>
	</h:form>

</ui:composition>
